<?php


require_once __DIR__.'/vendor/autoload.php';


define('ROOT_PATH', __DIR__);
define('PUBLIC_PATH', __DIR__.'/public');

$current_page = '';
// 找到当前文件所在目录名
$request_url = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);
$current_page = basename($request_url);

$config = include __DIR__.'/config.php';

require_once PUBLIC_PATH.'/common.php';
